From fa1078a3b1d84e9f400bd64219567f315c005d56 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 2 Sep 2008 08:38:41 +0000 Subject: [PATCH] Add depth to KML writer. --- kml.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kml.c b/kml.c index 28b210742..286a61038 100644 --- a/kml.c +++ b/kml.c @@ -618,7 +618,13 @@ static void kml_output_description(const waypoint *pt) if (pt->altitude != unknown_alt) TD2("Altitude: %.3f %s", alt, alt_units); if (pt->heartrate) TD("Heart rate: %d", pt->heartrate); if (pt->cadence) TD("Cadence: %d", pt->cadence); + /* Which unit is this temp in? C? F? K? */ if WAYPT_HAS(pt, temperature) TD("Temperature: %.1f", pt->temperature); + if WAYPT_HAS(pt, depth) { + char *depth_units; + double depth = fmt_distance(pt->depth, &depth_units); + TD2("Depth: %.1f %s", depth, depth_units); + } if WAYPT_HAS(pt, speed) { char *spd_units; double spd = fmt_speed(pt->speed, &spd_units); -- 2.30.2